package cn.webrx;

import java.util.*;

public class MyHashMap  {

    public Set<Json> values(Map<?,?> map) {
        Set<Json> sj = new HashSet<>();
        Iterator<? extends Map.Entry<?, ?>> it = map.entrySet().iterator();
        StringBuilder su = new StringBuilder();
        while(it.hasNext()){
            su.append("{");
            su.append(it.next().toString());
            su.append("}");
            Json js = new Json();
            js.setJson(su.toString());
            sj.add(js);
            su.delete(0,su.length());
        }
        return sj;
    }
}
